
function $t(str){
	let curr_lg = window.localStorage['curr_lg'];
	let arr = str.split('.');
	let cmd = "";
	for(let i = 0;i<arr.length;i++){
		cmd+="['"+arr[i]+"']"
	}
	
	if(curr_lg == 'jp'){
		return eval("$jp"+cmd);
	}else if(curr_lg == 'en'){
		return eval("$en"+cmd)
	}else if(curr_lg == 'korean'){
		return eval("$korean"+cmd)
	}else{
		return eval("$zh"+cmd)
	}
}
function get_curr_lg(){
	let lg = window.localStorage['curr_lg'];
	if(!lg){
		return 'en';
	}
	
	return lg;
	// if(!lg){
	// 	return 'en';
	// }
}
function switch_lg(lg){
	window.localStorage['curr_lg'] = lg;
	// zhou_post("",{
		
	// },res=>{
		
	// })
	location.reload();
}
